﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="AgentsAdd.aspx.cs" Inherits="AgentsAdd" Title="Project Monitoring System"
    Culture="auto:en-US" UICulture="auto" meta:resourcekey="PageResource1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"
    Visible="false">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <asp:ObjectDataSource ID="ODSAgent" runat="server" SelectMethod="GetAgentData" TypeName="IPTableAdapters.AgentTableAdapter"
        OldValuesParameterFormatString="original_{0}" DeleteMethod="Delete" InsertMethod="Insert"
        UpdateMethod="Update">
        <SelectParameters>
            <asp:SessionParameter DefaultValue="0" Name="SuperUser" SessionField="SuperUser"
                Type="String" />
            <asp:SessionParameter DefaultValue="" Name="OwnerGroupID" SessionField="OwnerGroupID"
                Type="String" />
        </SelectParameters>
        <DeleteParameters>
            <asp:Parameter Name="IsDelete" Type="Boolean" />
            <asp:Parameter Name="DeleteBy" Type="String" />
            <asp:Parameter Name="DeleteIP" Type="String" />
            <asp:Parameter Name="Original_Agent" Type="String" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="Name" Type="String" />
            <asp:Parameter Name="ChineseName" Type="String" />
            <asp:Parameter Name="Address" Type="String" />
            <asp:Parameter Name="ContactPerson" Type="String" />
            <asp:Parameter Name="JobTitle" Type="String" />
            <asp:Parameter Name="Phone" Type="String" />
            <asp:Parameter Name="Fax" Type="String" />
            <asp:Parameter Name="Phone2" Type="String" />
            <asp:Parameter Name="MobilePhone" Type="String" />
            <asp:Parameter Name="MobilePhone2" Type="String" />
            <asp:Parameter Name="WebSite" Type="String" />
            <asp:Parameter Name="EmailAddress" Type="String" />
            <asp:Parameter Name="EmailAddress2" Type="String" />
            <asp:Parameter Name="UpdateBy" Type="String" />
            <asp:Parameter Name="ContactPerson2" Type="String" />
            <asp:Parameter Name="Fax2" Type="String" />
            <asp:Parameter Name="Original_Agent" Type="String" />
            <asp:Parameter Name="UpdateIP" Type="String" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="Agent" Type="String" />
            <asp:Parameter Name="Name" Type="String" />
            <asp:Parameter Name="ChineseName" Type="String" />
            <asp:Parameter Name="Address" Type="String" />
            <asp:Parameter Name="ContactPerson" Type="String" />
            <asp:Parameter Name="JobTitle" Type="String" />
            <asp:Parameter Name="Phone" Type="String" />
            <asp:Parameter Name="Fax" Type="String" />
            <asp:Parameter Name="Phone2" Type="String" />
            <asp:Parameter Name="MobilePhone" Type="String" />
            <asp:Parameter Name="MobilePhone2" Type="String" />
            <asp:Parameter Name="WebSite" Type="String" />
            <asp:Parameter Name="EmailAddress" Type="String" />
            <asp:Parameter Name="EmailAddress2" Type="String" />
            <asp:Parameter Name="CreateBy" Type="String" />
            <asp:Parameter Name="UpdateBy" Type="String" />
            <asp:Parameter Name="OwnerGroupID" Type="String" />
            <asp:Parameter Name="ContactPerson2" Type="String" />
            <asp:Parameter Name="Fax2" Type="String" />
            <asp:Parameter Name="CreateIP" Type="String" />
        </InsertParameters>
    </asp:ObjectDataSource>
    <table width="900px">
        <tr>
            <td align="center">
                <asp:Label ID="lblError" runat="server" ForeColor="Red" Width="100%" CssClass="error"
                    meta:resourcekey="lblErrorResource1"></asp:Label>
            </td>
        </tr>
    </table>
    <div style="padding: 5px; width: 970px;">
        <fieldset style="text-align: center">
            <legend>
                <asp:Label ID="lblAgentAdd" runat="server" Text="Add Agent" meta:resourcekey="lblAgentAddResource1"></asp:Label></legend>
            <table>
                <tr>
                    <td style="vertical-align: top; text-align: right; width: 137px;">
                        <asp:Label ID="lblAgent" runat="server" Text="Agent" meta:resourcekey="lblAgentResource1"></asp:Label>
                    </td>
                    <td style="vertical-align: top; text-align: left; width: 157px;" colspan="2">
                        <asp:TextBox ID="txtAgent" runat="server" CssClass="required" ReadOnly="True" meta:resourcekey="txtAgentResource1"
                            MaxLength="30"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtAgent"
                            Display="Dynamic" ErrorMessage="Agent is a required field." meta:resourcekey="RequiredFieldValidator1Resource1"></asp:RequiredFieldValidator>
                    </td>
                    <td style="vertical-align: top; width: 157px; text-align: left">
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; text-align: right; width: 137px; height: 34px;">
                        <asp:Label ID="lblName" runat="server" Text="Name" meta:resourcekey="lblNameResource1"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 191px; text-align: left; height: 34px;">
                        <asp:TextBox ID="txtName" runat="server" Width="244px" ReadOnly="True" meta:resourcekey="txtNameResource1"
                            MaxLength="100"></asp:TextBox>
                    </td>
                    <td style="vertical-align: top; width: 299px; text-align: right; height: 34px;">
                        <asp:Label ID="lblChiName" runat="server" Text="Chinese Name" meta:resourcekey="lblChiNameResource1"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 157px; text-align: left; height: 34px;">
                        <asp:TextBox ID="txtChiName" runat="server" Width="244px" ReadOnly="True" meta:resourcekey="txtChiNameResource1"
                            MaxLength="30"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; width: 137px; text-align: right">
                        <asp:Label ID="lblAddress" runat="server" Text="Address" meta:resourcekey="lblAddressResource1"></asp:Label>
                    </td>
                    <td colspan="3" style="vertical-align: top; width: 157px; text-align: left">
                        <asp:TextBox ID="txtAddress" runat="server" MaxLength="30" TextMode="MultiLine" Width="363px"
                            ReadOnly="True" meta:resourcekey="txtAddressResource1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; width: 137px; text-align: right">
                        <asp:Label ID="lblWebSite" runat="server" Text="WebSite" meta:resourcekey="lblWebSiteResource1"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 191px; text-align: left">
                        <asp:TextBox ID="txtWebSite" runat="server" Width="239px" ReadOnly="True" meta:resourcekey="txtWebSiteResource1"
                            MaxLength="100"></asp:TextBox>
                    </td>
                    <td style="vertical-align: top; width: 299px; text-align: right">
                        <asp:Label ID="lblJobTitle" runat="server" Text="Job Title" meta:resourcekey="lblJobTitleResource1"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 157px; text-align: left">
                        <asp:TextBox ID="txtJobTitle" runat="server" Width="244px" ReadOnly="True" meta:resourcekey="txtJobTitleResource1"
                            MaxLength="60"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; width: 137px; text-align: right">
                        <asp:Label ID="lblContactPerson" runat="server" Text="Contact Person" meta:resourcekey="lblContactPersonResource1"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 191px; text-align: left">
                        <asp:TextBox ID="txtContactPerson" runat="server" Width="244px" ReadOnly="True" meta:resourcekey="txtContactPersonResource1"
                            MaxLength="30"></asp:TextBox>
                    </td>
                    <td style="vertical-align: top; width: 299px; text-align: right">
                        <asp:Label ID="lblContactPerson2" runat="server" Text="Contact Person 2" meta:resourcekey="lblContactPerson2"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 157px; text-align: left">
                        <asp:TextBox ID="txtContactPerson2" runat="server" Width="206px" ReadOnly="True"
                            meta:resourcekey="txtMobilePhoneResource1" MaxLength="30"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; width: 137px; text-align: right; height: 5px;">
                        <asp:Label ID="lblPhone" runat="server" Text="Phone Number" meta:resourcekey="lblPhoneResource1"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 191px; text-align: left; height: 5px;">
                        <asp:TextBox ID="txtPhone" runat="server" Width="206px" ReadOnly="True" meta:resourcekey="txtPhoneResource1"
                            MaxLength="30"></asp:TextBox>
                    </td>
                    <td style="vertical-align: top; width: 299px; text-align: right; height: 5px;">
                        &nbsp;<asp:Label ID="lblPhone2" runat="server" Text="Phone Number 2" meta:resourcekey="lblPhone2Resource1"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 157px; text-align: left; height: 5px;">
                        <asp:TextBox ID="txtPhone2" runat="server" Width="206px" ReadOnly="True" meta:resourcekey="txtPhone2Resource1"
                            MaxLength="30"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; width: 137px; text-align: right">
                        <asp:Label ID="lblFax" runat="server" Text="Fax Number 1" meta:resourcekey="lblFaxResource1"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 191px; text-align: left">
                        <asp:TextBox ID="txtFax" runat="server" Width="206px" ReadOnly="True" meta:resourcekey="txtFaxResource1"
                            MaxLength="30"></asp:TextBox>
                    </td>
                    <td style="vertical-align: top; width: 299px; text-align: right">
                        &nbsp;&nbsp;
                        <asp:Label ID="lblFax2" runat="server" Text="Fax Number 2" meta:resourcekey="lblFax2"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 157px; text-align: left">
                        <asp:TextBox ID="txtFax2" runat="server" Width="206px" ReadOnly="True" meta:resourcekey="txtMobilePhone2Resource1"
                            MaxLength="30"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; width: 137px; text-align: right">
                        <asp:Label ID="lblEmailAddress" runat="server" Text="Email" meta:resourcekey="lblEmailAddressResource1"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 191px; text-align: left">
                        <asp:TextBox ID="txtEmailAddress" runat="server" Width="206px" ReadOnly="True" meta:resourcekey="txtEmailAddressResource1"
                            MaxLength="30"></asp:TextBox>
                    </td>
                    <td style="vertical-align: top; width: 299px; text-align: right">
                        <asp:Label ID="lblEmailAddress2" runat="server" Text="Email 2" meta:resourcekey="lblEmailAddress2Resource1"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 157px; text-align: left">
                        <asp:TextBox ID="txtEmailAddress2" runat="server" Width="206px" ReadOnly="True" meta:resourcekey="txtEmailAddress2Resource1"
                            MaxLength="30"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="width: 100%; text-align: center">
                        <asp:Button ID="btnNew" runat="server" CssClass="submit" Text="New" OnClick="btnNew_Click"
                            Visible="false" CausesValidation="False" meta:resourcekey="btnNewResource1" />
                        <asp:Button ID="btnModify" runat="server" CssClass="submit" Text="Edit" OnClick="btnModify_Click"
                            CausesValidation="False" meta:resourcekey="btnModifyResource1" Visible="false" />
                        <asp:Button ID="btnSave" runat="server" CssClass="submit" Text="Save" OnClick="btnSave_Click"
                            meta:resourcekey="btnSaveResource1" />
                        <asp:Button ID="btnDelete" runat="server" CausesValidation="False" CssClass="submit"
                            Visible="false" OnClick="btnDelete_Click" Text="Delete" meta:resourcekey="btnDeleteResource1" />
                        <asp:Button ID="btnCancel" runat="server" CssClass="reset" Text="Cancel" OnClick="btnCancel_Click"
                            CausesValidation="False" meta:resourcekey="btnCancelResource1" />
                        <asp:Button ID="btnBack" runat="server" CausesValidation="false" CssClass="reset"
                            meta:resourcekey="btnBackResource1" Text="Back" OnClick="btnBack_Click" />
                    </td>
                </tr>
            </table>
            <asp:CheckBox ID="chkForOperation" runat="server" Visible="False" meta:resourcekey="chkForOperationResource1" />
            <asp:CheckBox ID="cbForUpdate" runat="server" Height="2px" Visible="False" Width="121px"
                meta:resourcekey="cbForUpdateResource1" /></fieldset>
    </div>
    <table height="100">
        <tr>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
